@echo off

cls

echo.
echo --- --- --- --- --- compile.. --- --- --- --- --- ---
echo.

go build -o drive-template.exe

    if %errorlevel% neq 0 (

    echo.
    echo --- --- --- --- --- compile fail! --- --- --- --- ---
    echo.

    exit /b 1

)
move drive-template.exe ../..

cd ../..

echo.
echo --- --- --- --- --- running --- --- --- --- --- ---
echo.

drive-template.exe

echo.
echo --- --- --- --- --- end --- --- --- --- --- ---
echo.

cd %~dp0
